#include <GL/glfw.h>
#include <string>

char KEYBOARD_KeyIsPressed(char *cad)
{
	if(!strcmp (strlwr(cad),"up"))
	{
		return glfwGetKey( GLFW_KEY_UP );
	}

	if(!strcmp (strlwr(cad),"down"))
	{
		return glfwGetKey( GLFW_KEY_DOWN );
	}

	if(!strcmp (strlwr(cad),"left"))
	{
		return glfwGetKey( GLFW_KEY_LEFT );
	}

	if(!strcmp (strlwr(cad),"right"))
	{
		return glfwGetKey( GLFW_KEY_RIGHT );
	}
	
	return 0;
}